package com.tomergoldst.tooltipshm;

import ohos.agp.animation.AnimatorProperty;
import ohos.agp.components.Component;
import ohos.agp.components.DependentLayout;
import ohos.agp.components.Text;

public interface ToolTipAnimator {

    /**
     * Object animator for the tooltip view to pop-up
     *
     * @param view     The tooltip view.
     * @param imaView  DependentLayout
     * @param duration Duration for the animator.
     * @return ObjectAnimator
     */
    AnimatorProperty popup(Text view, DependentLayout imaView, long duration);

    /**
     * Object animator for the tooltip view to pop-out/hide
     *
     * @param view     The tooltip view.
     * @param duration Duration for the animator.
     * @param animator animator for the animator
     * @return ObjectAnimator
     */
    AnimatorProperty popout(Component view, long duration, AnimatorProperty animator);
}
